home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 001a / hostbbs2.zip / PCBTEST.BAT < prev    next >
DOS Batch File  |  1991-11-24  |  1KB  |  74 lines

  1. @echo off
  2. e:
  3. cd\boyan\scan
  4. if exist pcbpass.txt del pcbpass.txt
  5. if exist pcbfail.txt del pcbfail.txt
  6. if %@ext[%1]==gif goto gif
  7. if %@ext[%1]==zip goto zip
  8. goto crc
  9.  
  10. :gif
  11. if %2 == test goto gift
  12. giftest %1 /C:GIFTEST.CNF > PCBPASS.TXT
  13. type pcbpass.txt >> gifpass.log
  14. if errorlevel == 25 goto badgif
  15. if errorlevel == 20 goto badgif
  16. if errorlevel == 10 goto end
  17. if errorlevel == 1 goto badgif
  18. goto end
  19.  
  20. :gift
  21. echo Testing GIF file...
  22. giftest %1 > PCBPASS.TXT
  23. if errorlevel == 25 goto badgif
  24. if errorlevel == 20 goto badgif
  25. if errorlevel == 10 goto end
  26. if errorlevel == 1 goto badgif
  27. goto end
  28.  
  29. :badgif
  30. beep
  31. ren PCBPASS.TXT PCBFAIL.TXT
  32. goto end
  33.  
  34. :zip
  35. ptest %1 ptest.cfg
  36. if %2 == test goto end
  37. if exist pcbfail.txt goto end
  38.  
  39. :crc
  40. if exist pcbpass.txt del pcbpass.txt
  41. cd\boyan
  42. goto end
  43. proecho 2 ~Adding %@name[%1] to CRC database...
  44. zdcsfc %1 %2 %3
  45. goto end
  46.  
  47.  
  48. :asta
  49. goto end
  50.  
  51. pcbdesc /d %1 %3
  52. if errorlevel == 1 goto skipit
  53. proecho 2 ~~Found internal description for %1...
  54. proecho 2 ~Imported to BBS...
  55.  
  56. :skipit
  57. goto end
  58. if exist PCBPASS.TXT type PCBPASS.TXT >> PCBPASS.LOG
  59. if exist PCBFAIL.TXT type PCBFAIL.TXT >> PCBFAIL.LOG
  60. if exist PCBFAIL.TXT move %1 h:\hold /q
  61.  
  62. if exist %3 type %3 >> f:\pcb\desc
  63.  
  64. Unknown command "proecho"▀
  65. Unknown command "zdcsfc"
  66. Unknown command "pcbdesc"
  67. Unknown command "proecho"
  68. Unknown command "proecho"
  69. Invalid path "f:\pcb\desc"
  70.  
  71. :end
  72. cd\boyan
  73.  
  74.